package com.ping.study.model.dto;

import lombok.Data;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

@Data
public class NbaStatsRequestDto {
    // 默认值字段
    private final String appKey = "tiKB2tNdncnZFPOi";
    private final String appVersion = "1.1.0";
    private final String channel = "NBA";
    private final String deviceId = "cd4920b68041f06fcc6ea358c85710bd";
    private final String installId = "1502934360";
    private final String network = "N/A";
    private final String osType = "3";
    private final String osVersion = "1.0.0";
    private final String sign = "sign_v2";
    private final String sign2 = "67BB8937A32E512826D59467E803B28CD82E179FCE8B2A470C20AA0BD4AE08DB";

    // 动态字段
    private final long t = System.currentTimeMillis() / 1000; // 当前时间戳(秒)
    private final String start = LocalDate.now().format(DateTimeFormatter.ISO_DATE); // 当天日期
    private final String end = LocalDate.now().format(DateTimeFormatter.ISO_DATE); // 当天日期
}
